/*
 * @Description: Test
 * @Author: rendc
 * @Date: 2025-08-01 14:10:16
 * @LastEditors: rendc
 * @LastEditTime: 2025-08-01 14:15:41
 */

import java.util.Arrays;

public class Test02 {

  public static void main(String[] args) {
    // final修饰引用数据类型变量
    final int[] arr;
    arr = new int[3];
    System.out.println(arr);
    System.out.println(Arrays.toString(arr));
    arr[0] = 10;
    arr[1] = 20;
    arr[2] = 30;
    System.out.println(arr);
    System.out.println(Arrays.toString(arr));
    // arr = null;// 错误: 无法为最终变量arr分配值
    // System.out.println(arr);
    // System.out.println(Arrays.toString(arr));

  }
}